import request from '@/plugins/request';
//设备类型
export function projectType(data) {
    return request({
        url:'/api/v1/dic/dic_car_type/list',
        method: 'post',
        data
    });
}

//设备列表
export function projectList(data) {
    return request({
        url:'/api/web/project/page',
        method: 'get',
        params:{...data}
    });
}
//添加设备
export function projectAdd(data) {
    return request({
        url:'/api/web/project/add',
        method: 'post',
        data
    });
}
//修改设备
export function projectUpdate(data) {
    return request({
        url:'/api/web/project/update',
        method: 'post',
        data
    });
}

//删除项目
export function projectDel(data) {
    return request({
        url:'/api/web/project/delete',
        method: 'DELETE',
        params:{...data}
    });
}
//查看项目详情
export function projectDetail(data) {
    return request({
        url:'/api/v1/car/info',
        method: 'get',
        params:{...data}
    });
}


